import React from 'react'
import PubSub from 'pubsub-js'
export default function SonPub() {
  return (
    <div>
      <h3>SonPub</h3>
      <button onClick={()=>{
        PubSub.publish('法外狂徒张三', '哈哈哈，我法外狂徒张三又来了')
        }}>发布法外张三消息</button>
    </div>
   
  )
}
